package com.itheima.reggie.service;

import com.itheima.reggie.entity.ShoppingCart;

import java.util.List;

public interface ShoppingCartService {
    /**
     * 添加到购物车
     * @param shoppingCart
     * @return
     */
    ShoppingCart add(ShoppingCart shoppingCart);
    /**
     * 根据当前用户id查看购物车
     *
     */
    List<ShoppingCart> list();
    /**
     * 清除购物车
     */

    void clean();

    ShoppingCart sub(ShoppingCart shoppingCart);
}
